package com.joker.orange.service;

import com.joker.orange.domain.ConsumptionRecord;
import com.joker.orange.domain.vo.ConsumptionRecordVo;
import com.joker.orange.domain.bo.ConsumptionRecordBo;
import com.joker.common.core.page.TableDataInfo;
import com.joker.common.core.domain.PageQuery;

import java.util.Collection;
import java.util.List;

/**
 * 消费记录Service接口
 *
 * @author Joker
 * @date 2024-06-09
 */
public interface IConsumptionRecordService {

    /**
     * 查询消费记录
     */
    ConsumptionRecordVo queryById(Long id);

    /**
     * 查询消费记录列表
     */
    TableDataInfo<ConsumptionRecordVo> queryPageList(ConsumptionRecordBo bo, PageQuery pageQuery);

    /**
     * 查询消费记录列表
     */
    List<ConsumptionRecordVo> queryList(ConsumptionRecordBo bo);

    /**
     * 新增消费记录
     */
    Boolean insertByBo(ConsumptionRecordBo bo);

    /**
     * 修改消费记录
     */
    Boolean updateByBo(ConsumptionRecordBo bo);

    /**
     * 校验并批量删除消费记录信息
     */
    Boolean deleteWithValidByIds(Collection<Long> ids, Boolean isValid);
}
